<template>
  <el-card class="card">
    <template #header>
      <div class="title">
        <el-space>
          <el-icon>
            <Grid />
          </el-icon>
          {{ title }}
        </el-space>
      </div>
    </template>
    <slot>
      <router-view />
    </slot>
  </el-card>
</template>

<script setup>
import { ref, computed, watch, reactive, onMounted } from 'vue'
defineProps({
  title: String
})
</script>

<style scoped lang='less'>
.title {
  display: flex;
  align-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #606266;
}
</style>